<template>
  <div>
    <v-header></v-header>
    <v-slideBar></v-slideBar>
    <!-- pl 为backtop的有效范畴 -->
    <pl>
      <keep-alive :include="dynamicTags">
      <router-view></router-view>
      </keep-alive>
    </pl>
  </div>
</template>

<script>
import vHeader from "../components/begin_home/header";
import vSlideBar from "../components/begin_home/slide_bar";
import pl from "../components/comms/back_top";
import bus from "../components/bus/bus";
export default {
  data() {
    return {
      isCollapse: false,
      dynamicTags: [],
    };
  },
  components: {
    vHeader,
    vSlideBar,
    pl,
  },
  created() {
    bus.$on("dynamicTags", (val) => {
      this.dynamicTags = val;
    });
  },
  methods: {},
};
</script>

<style scoped>
.box {
  position: absolute;
  left: 64px;
  top: 70px;
  right: 0;
  bottom: 0;
  overflow-x: hidden;
  transition: all ease 0.4s;
}
.box1 {
  position: absolute;
  left: 250px;
  top: 70px;
  right: 0;
  bottom: 0;
  overflow-x: hidden;
  transition: all ease 0.4s;
}
</style> 